<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Pulog.Controllers.SettingsFormViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Settings</h2>
<%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

    <% foreach (var item in Model) { %>
    
        <p>
            <label for="<%=item.Key %>"><%=item.Name %></label>
            <%= Html.TextBox(item.Key,item.Value)%>
            <%= Html.ValidationMessage(item.Value, "*") %>
        </p>
    <% } %>

    <p>
        <input type="submit" value="Save" />
    </p>
<% } %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
